package com.twang.stock.utils;

/**
 * Created by ace on 2017/8/29.
 */
public class RedisKey {

    //Redis Key命名规范：微服务模块:key:业务模块1:业务模块2:操作类型:%s
    //常量名全部大写,微服务模块_KEY_业务模块1_业务模块2_操作类型/微服务模块_KEY_业务模块1_业务模块2_操作类型_PREFIX
    public final static String KEY_BIZ_NO = "key:biz:no:";

    //客户
    public final static String C_USER_TOKEN = "c:user:token:%s";
    public final static String C_USER_TOKEN_KEY = "c:user:token:key:%s:%s";
    //商户
    public final static String B_USER_TOKEN = "b:user:token:%s";
    //管理员
    public final static String M_USER_TOKEN = "m:user:token:%s";

    public final static String C_USER_SMS_REGISTE = "c:user:sms:registe:%s";

    //银行卡地区
    public final static String BANK_CARD_DICT_DATA_MAP = "dict:data:map:bankcard";
    /**
     * 限制访问接口次数
     */
    public final static String LIMIT_INTERFACE_NUMBER = "limit:interface:number:";

    //App Version Key
    public final static String KEY_VERSION_PREFIX = "base:key:version:%s";

    //用户登录token
    public final static String UCENTER_LOGIN_TOKEN_PREFIX = "ucenter:key:user:token:%s";

    public static final String C_USER_SMS_CODE = "c:user:sms:code:%s" ;

    public static final String C_USER_SMS_CHECK_CODE = "c:user:sms:checkcode:%s" ;

    public static final String C_USER_SMS_CHECK_BANK_CODE = "c:user:sms:checkbankcode:%s" ;

    public static final String C_USER_SMS_H5_CODE = "c:user:sms:codeh5:%s" ;

    public static final String C_USER_BRANCH_KEY = "c:user:branch:%s:%s" ;

    public static final String C_USER_COUPONPOP_KEY = "c:user:coupon:%s" ;

    public static final String C_BRANCH_USER_LIST = "C_BRANCH_USER_LIST" ;

    //催收App
    public final static String COLLECT_USER_TOKEN = "collect:user:token:%s";

    public static final String COLLECT_USER_SMS_CODE = "collect:user:sms:code:%s" ;

    public static final String LOCK_PREFIX = "lock:%s";

    public static final String DATA_DICT_ITEM_LIST_PREFIX = "data:dict:item:list:%s";

    public static final String DATA_DICT_ITEM_MAP_PREFIX = "data:dict:item:map:%s";

    public static final String TASK_COLLECTION_USER_LIST_PREFIX = "task:collection:user:list:%s";

    public static final String TASK_COLLECTION_USER_LIST_BY_LEVEL_PREFIX = "task:collection:user:list:%s:%s";

    public static final String TASK_REMIND_USER_LIST_PREFIX = "task:remind:user:list:%s";

    public static final String TASK_EXAMINE_USER_LIST_PREFIX = "task:examine:user:list:%s";

    public static final String RANDOM_DATA = "random_data_";

    //催收人员通话时长
    public final static String COLLECT_USER_CALLS = "collect:user:calls";


    //催收员回款绩效计算
    public final static String COLLECT_ACCOUNT_FLOW = "collect:account:flow:%s";

    //催收人员通话时长
    public final static String COLLECT_USER_SAVEDB = "collect:user:savedb";

    public static final String C_USER_SMS_LIMIT = "c:user:sms:limit:%s" ;

    public static final String C_USER_SMS_H5_LIMIT = "c:user:sms:limith5:%s" ;

    public static final String C_USER_SMS_CHECK_LIMIT = "c:user:sms:checklimit:%s" ;

    public static final String C_USER_SMS_CHECK_BANK_LIMIT = "c:user:sms:checkbanklimit:%s" ;

    //风控计算额度
    public static final String RISK_CUST_AMOUNT = "risk:amount:%d" ;

    //风控计算额度-上次
    public static final String RISK_CUST_AMOUNT_LAST = "risk:amount:last:%d:%d" ;

    //风控计算额度
    public static final String PAY_COMBOPAY_TOKEN = "pay:combopay:token" ;

    public static final String PAYMENT_COBRU_TOKEN = "payment:cobru:token" ;

    public static final String PAYMENT_COBRU_NEW_TOKEN = "payment:cobrunew:token" ;

    public static final String PAYMENT_COBRU_REPAY_TOKEN = "payment:cobrurepay:token" ;

    //风控计算额度
    public static final String PAYMENT_BANK_SERIAL = "payment:bank:serial" ;

    public final static String C_USER_WRITELIST = "c:user:writelist:%s";

    public static final String SMS_INAL_TOKEN = "sms:inalambria:token" ;

    public static final String SMS_TELEGRAM_TOKEN = "sms:telegram:token" ;

    public static final String SMS_TELEGRAM_TOKEN_MM = "sms:telegram:mm:token" ;

    public static final String SMS_SOBOTWHATSAPP_TOKEN = "sms:sobotwhatsapp:token" ;

    public static final String PAYMENT_PAY_CHANNEL = "payment:paychannel:%s" ;

    public final static String B_USER_TOKEN_LINK = "b:link:%s";


    //是否弹窗 催收 ReceiptTask
    public final static String COLLECT_USER_RECEIPTTASK = "collect_user_receipttask:%s";
    public final static String CUSTOMER_USER_TOKEN = "customer:user:token:%s";

    public static final String OTP_MOBILE_SMS_CHANNEL = "otp:mobile:sms:channel:%s_%s_%s" ;

    public static final String COLLECTOR_CUST_RELATION = "collector:cust:relation:%s_%s_%s";
    public static final String COLLECTOR_MAX_ID = "collector:max:id";
    public static final String CUST_BOOK_MOBILE = "cust:book:mobile:%s";
    public static final String COLLECTOR_CALL_MOBILE = "collector:call:mobile:%s_%s_%s";

    public static final String C_USER_LINKMENCOUNT_APP = "c:user:linkmancount:app:%s" ;
    public static final String C_USER_LINKMENCOUNT_UTIL = "c:user:linkmancount:util:%s" ;

    // 客户经纬度
    public final static String C_USER_LBS = "c:user:lbs:%s";

    public final static String C_USER_WITHDRAWAL_AMOUNT_LIMIT = "c:user:withdrawal:amount:%s:%s";
    public final static String C_USER_WITHDRAWAL_COUNT_LIMIT = "c:user:withdrawal:count:%s:%s";

    public final static String REWARD_COUNT_COPY_USER = "reward:count:copy:user:%s";
    public final static String REWARD_COUNT_COPY_TOTAL = "reward:count:copy:total:%s";

    public final static String POINT_COUNT_USER = "uv:count:%s:%s:%s:%s";
    public final static String POINT_COUNT_TOTAL = "pv:count:%s:%s:%s:%s";

    public final static String APP_UPLOAD_JSON = "app:uploadjson:%s:%s";
    public final static String TIMEKEEPING = "timekeeping:%s:%s";

    public final static String COLLECTION_LOG_DAY_LIMIT = "collection_log_day_limit:%s:%s";

    public final static String LIPAPAY_TOKEN = "lipapaytoken:%s";
    public final static String APP_UPLOAD_CHECK_JSON = "app:checkjson:%s:%s";

    public final static String C_USER_NF_CHOOSEAPPLYAMOUNT = "c:user:chooseamount:%s";

    public final static String C_USER_H5_TOKEN = "c:user:h5:%s:%s";
    public final static String LOCK_PRODUCT = "lock:product:%s";

    public final static String LOCK_SING_OUT_IMAGE_CODE = "lock:sing:out:image:code:%s";

    public final static String ZHAI_QUAN_MINUTES_VOL_CODE_LAST_MINUTES = "zhai:quan:minutes:vol:code:last:minutes:%s";

    public final static String LOCK_NEW_MINUTES_ID = "lock:new:minutes:id:%s";


}
